package com.fwpsl.springframework.annotation.importA;

import com.fwpsl.springframework.annotation.importA.bean.Color;
import com.fwpsl.springframework.entity.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.Scope;

/**
 * @author: 风戏fw
 * @date: 2024/5/21
 * @description:
 */
@Import({Color.class, MyImportSelector.class, MyImportBeanDefinitionRegistrar.class})
public class MainConfig {

    @Scope("prototype")
    @Bean("person")
    public User person() {
        System.out.println("我是Person");
        return new User("fw", 25);
    }
}
